package Leetcode;

public class Leetcode_26 {
    public static int findLUSlength(String a, String b) {
        return !a.equals(b) ? Math.max(a.length(), b.length()) : -1;
    }
    public static void main(String[] arr){
         String a = "aba", b = "cdc";
         System.out.println(findLUSlength(a,b));
    }
}
